<%--
    Document   : modificarFisioterapeuta
    Created on : Nov 19, 2010, 11:24:06 AM
    Author     : Alith
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="/fisiosoftJDV/faces/jsfcrud.css" />
        <script type='text/javascript'>
            window.onload = function() { BindEvent(); }
            function BindEvent(){
		var combDi = document.getElementById ( "comboDia" );
		combDi.value = "${diaEscogido}";
                var comMe = document.getElementById ( "comboMes" );
		comMe.value = "${mesEscogido}";
                var comAn = document.getElementById ( "comboAno" );
		comAn.value = "${anoEscogido}";
            }
        </script>
        <title>JSP Page</title>
    </head>
    <body>
        <body style="background-color:#FFFFFF ">
        <center><h2>Modificar el fisioterapeuta <c:out value="${modFisio.nombre}"/> <c:out value="${modFisio.apellido}"/></h2></center>
        <br>
        <form:form method="post" commandName="modFisio">

            <h4>Modificar el login y la contraseña del usuario <a href ="/fisiosoftJDV/modificarLogin.htm?id_fisio=<c:out value="${modFisio.idFisioterapeuta}"/>">Clic Aqu&iacute;</a></h4>
        
          <table align="center" width="60%" bgcolor="dfecf1" border="0" cellspacing="0" cellpadding="5">
            <tr>
                <td align="right" width="30%">Nombre*:</td>
                <td width="20%">
                  <form:input path="nombre"/>
                </td>
                <td>
                  <font color="red"><form:errors path="nombre"/></font>
                </td>
            </tr>
            <tr>
              <td align="right" width="20%">Apellido:</td>
                <td width="20%">
                  <form:input path="apellido"/>
                </td>
            </tr>
            <tr>
              <td align="right" width="20%">Cedula:</td>
                <td width="20%">
                    <form:input readonly="true" path="cedula"/>
                </td>
                <td>
                  <font color="red"><form:errors path="cedula"/></font>
                </td>
            </tr>
            <tr>
              <td align="right" width="20%">Fecha de Nacimiento:</td>
                <td width="40%">
                    Dia: <form:select path="fechaNacimientoDia" id="comboDia">
                        <c:forEach items="${dias}" var="di">
                            <form:option value="${di}" > <c:out value="${di}"/></form:option>
                        </c:forEach>
                    </form:select>
                    Mes: <form:select path="fechaNacimientoMes" id="comboMes">
                        <c:forEach items="${meses}" var="me">
                            <form:option value="${me}"> <c:out value="${me}"/></form:option>
                        </c:forEach>
                    </form:select>
                    A&ntilde;o: <form:select path="fechaNacimientoAno" id="comboAno">
                        <c:forEach items="${anos}" var="an">
                            <form:option value="${an}"> <c:out value="${an}"/></form:option>
                        </c:forEach>
                    </form:select>
                </td>
                <td>
                  <font color="red"><form:errors path="fechaNacimiento"/></font>
                </td>
            </tr>
            <tr>
              <td align="right" width="20%">Telefono:</td>
                <td width="20%">
                  <form:input path="telefono"/>
                </td>
            </tr>
            <tr>
              <td align="right" width="20%">Direccion:</td>
                <td width="20%">
                  <form:input path="direccion"/>
                </td>
            </tr>
            <tr>
              <td align="right" width="20%">Sexo:</td>
                <td width="20%">
                    <form:select path="sexo">
                        <form:option value="Masculino"> <c:out value="Masculino"/></form:option>
                        <form:option value="Femenino"> <c:out value="Femenino"/></form:option>
                    </form:select>
                </td>
            </tr>
            <tr>
                <td align="right" width="20%"><input type="submit" align="center" value="Modificar"></td>
            </tr>
          </table>
          <br>
        </form:form>
    </body>
</html>
